<template>
  <div id="shopMain">
    <el-container>
      <el-header>
        <div class="flex-bet header">
          <div class="flex">
            <img alt="logo" v-if="headLogo" :src="headLogo" class="yb_logo2 bor_rad50 mar_r10 mar_l10" />
            <img alt="logo" v-else src="@/assets/img/moren.png" class="yb_logo2 mar_r15 bor_rad50" />
            <div class="fon_14">{{plateformName}}</div>
            <div class="line mar_r10 mar_l10"></div>
            <div class="fon_14">商家中心</div>
            <!--                        <div class="pad_20 storeicon mar_l30">-->
            <!--                        </div>-->
            <!--                        <div>美团外卖</div>-->
            <!--                        <div class="line"></div>-->
            <!--                        <div>商家中心</div>-->
          </div>
          <div class="pad_r_20 flex rel">
            <div class="right_model flex-y-center fr">
              <div class="mar_r30 ssdd">
                <el-input placeholder="搜索订单" v-model="orderName" prefix-icon="el-icon-search mar_l5"></el-input>
              </div>
              <div class="flex-bet mar_r30">
                <div class="fon_14 shopname">{{storeData.name}}</div>
                <div class="shopline"></div>
                <div class="flex">
                  <div v-if="storeData.storeOpen=='1'" class="shoptxt fon_14 curs" @click="clickYycj()">营业中</div>
                  <div v-else class="shoptxt fon_14 curs" @click="clickYycj()" style="color: rgb(250, 85, 85);">暂停营业</div>
                  <div class="el-icon-caret-bottom mar_l5 color_9"></div>
                </div>
              </div>
              <div class="mar_r20">
                <el-button type="text">
                  <i class="el-icon-bell el-icon color_3 fon_18"></i>
                </el-button>
              </div>
              <div class="mar_r20">
                <el-button type="text">
                  <i class="el-icon-warning-outline el-icon color_3 fon_18"></i>
                </el-button>
              </div>
              <el-dropdown>
                <div class="flex-y-center">
                  <img alt="logo" v-if="storeData.icon" :src="storeData.icon" class="yb_logo2 mar_r15 bor_rad50" />
                  <img alt="logo" v-else src="@/assets/img/moren.png" class="yb_logo2 mar_r15 bor_rad50" />
                </div>
                <el-dropdown-menu slot="dropdown">
                  <el-dropdown-item>
                    <a class="color_3" @click="mdxx">个人中心</a>
                  </el-dropdown-item>
                  <el-dropdown-item v-if="authType==1">
                    <a class="color_3" @click="returnsystem">返回系统</a>
                  </el-dropdown-item>
                  <el-dropdown-item>
                    <a class="color_3" @click="outsystem">退出</a>
                  </el-dropdown-item>
                </el-dropdown-menu>
              </el-dropdown>
            </div>
            <div class="ab storeyyzt" v-show="yysj">
              <div class="flex-bet">
                <div class="flex">
                  营业时间：
                  <div class="color_3" v-show="storeData.timeType=='1'">00:00~24:00</div>
                  <div class="color_3" v-show="storeData.timeType=='2'">
                    <div v-for="(item,index) in storeData.timeArr" :key="index">{{item.startTime}}~{{item.endTime}}</div>
                  </div>
                </div>
                <div class="curs" @click="qxg">修改 ></div>
              </div>
              <div>
                <div class="flex mar_t15 mar_b5">
                  <span class="iconfont iconduihao" :class="storeData.storeOpen=='1' ? 'ztColor iconduihaoxuanzhong' : ''" style="font-size: 12px"></span>
                  <span class="zcyy mar_l5">正常营业</span>
                </div>
                <div class="oper t_l" @click="changeSwitch(1,1)">
                  <div class="hhyy">恢复营业</div>
                  <div class="binding">按营业时间自动开关店</div>
                </div>
              </div>
              <div>
                <div class="flex mar_t15 mar_b5">
                  <span class="iconfont iconduihao" :class="storeData.storeOpen=='2' ? 'ztColor iconduihaoxuanzhong' : ''" style="font-size: 12px"></span>
                  <span class="zcyy mar_l5">暂停营业</span>
                </div>
                <div class="oper t_l" @click="changeSwitch(2,1)">
                  <div class="hhyy">紧急关店</div>
                  <div class="binding">严重影响客户体验，请谨慎操作</div>
                </div>
              </div>
              <div class="mar_t15 curs subjectcolor2" @click="close">
                关闭窗口
                <i class="el-icon-close"></i>
              </div>
            </div>
          </div>
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu default-active="storeindex" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :router="true" :unique-opened="true">
            <el-menu-item index="storeindex">
              <i class="el-icon-menu"></i>
              <span slot="title">概 况</span>
            </el-menu-item>
            <el-submenu index="2" v-if="takeout == '1'">
              <template slot="title">
                <i class="el-icon-s-order"></i>
                <span slot="title">外 卖</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="storeorderprocessing">订单处理</el-menu-item>
                <el-menu-item index="storeorderinquiry">订单查询</el-menu-item>
                <el-menu-item index="storeselforder">自提订单</el-menu-item>
                <el-menu-item index="storecashierorder">当面付订单</el-menu-item>
                <el-menu-item index="storeelemorder" v-show="eleOpen==1">饿了么订单</el-menu-item>
                <el-menu-item index="storemeituanorder" v-show="meituanOpen==1">美团订单</el-menu-item>
                <el-menu-item index="storeevaluate">评价管理</el-menu-item>
                <el-menu-item index="storeoutset">外卖设置</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="10" v-if="instore == '1'">
              <template slot="title">
                <i class="el-icon-s-open"></i>
                <span slot="title">店 内</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="storeinstoresurvey">堂食概况</el-menu-item>
                <el-menu-item index="storeinstoreorder">堂食订单</el-menu-item>
                <el-menu-item index="storeinfastorder">快餐订单</el-menu-item>
                <el-menu-item index="storetable">桌位管理</el-menu-item>
<!--                <el-menu-item index="storetablemanager">活码管理</el-menu-item>-->
<!--                <el-menu-item index="storetablecode">门店码</el-menu-item>-->
                <el-menu-item index="storeinstoreset">店内设置</el-menu-item>
                <el-menu-item index="storeinprinterset">打印机管理</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="3">
              <template slot="title">
                <i class="el-icon-s-custom"></i>
                <span slot="title">商 品</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="storegoodlist" v-if="takeout == '1'">外卖商品</el-menu-item>
                <el-menu-item index="instoregoodlist" v-if="instore == '1'">店内商品</el-menu-item>
                <el-menu-item index="storegoodspec" v-if="takeout == '1' || instore == '1' && storeData.goodsModel=='3'">商品扩展</el-menu-item>
                <el-menu-item index="storegoodimport" >商品导入</el-menu-item>
<!--                <el-menu-item index="storegoodclassify" v-if="takeout == '1' && storeData.goodsModel=='3'">外卖分类管理</el-menu-item>-->
<!--                <el-menu-item index="instoregoodclassify" v-if="instore == '1' && storeData.goodsModel=='3'">店内分类管理</el-menu-item>-->
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="4">
              <template slot="title">
                <i class="el-icon-s-shop"></i>
                <span slot="title">用 户</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="storeusersurvey">用户概况</el-menu-item>
                <el-menu-item index="storeuserquery">用户查询</el-menu-item>
                <el-menu-item index="storeuserlabel">标签管理</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="5">
              <template slot="title">
                <i class="el-icon-s-finance"></i>
                <span slot="title">财 务</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="storeassetssurvey">资产总览</el-menu-item>
                <el-menu-item index="storeaccountmange">账户管理</el-menu-item>
                <el-menu-item index="storefinancerecord">财务对账</el-menu-item>
                <el-menu-item index="storetransactiondl">交易记录</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="6">
              <template slot="title">
                <i class="el-icon-s-data"></i>
                <span slot="title">数 据</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="storeoutsurvey1">外卖概况</el-menu-item>
                <el-menu-item index="storeinsurvey1">店内概况</el-menu-item>
                <el-menu-item index="storeflowanalysis">当面付概况</el-menu-item>
<!--                <el-menu-item index="storedatasurvey">数据分析</el-menu-item>-->
<!--                <el-menu-item index="storerealtime">实时分析</el-menu-item>-->
<!--                <el-menu-item index="storeflowanalysis">流量分析</el-menu-item>-->
<!--                <el-menu-item index="storeoutgood">商品分析</el-menu-item>-->
                <!--                                <el-menu-item index="storetransactionanalysis">交易分析</el-menu-item>-->
              </el-menu-item-group>
            </el-submenu>
            <el-menu-item index="storeapplication">
              <i class="el-icon-s-grid"></i>
              <span slot="title">应 用</span>
            </el-menu-item>
            <el-submenu index="8">
              <template slot="title">
                <i class="el-icon-s-tools"></i>
                <span slot="title">门 店</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="storebaseset">门店信息</el-menu-item>
                <el-menu-item index="storenoticeset">公告管理</el-menu-item>
                <!--                                <el-menu-item index="storeregiondistribution">配送区域</el-menu-item>-->
                <el-menu-item index="storeprinterset">打印机管理</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <!--                        <el-submenu index="9">-->
            <!--                            <template slot="title">-->
            <!--                                <i class="el-icon-s-cooperation"></i>-->
            <!--                                <span slot="title">权 限</span>-->
            <!--                            </template>-->
            <!--                            <el-menu-item-group>-->
            <!--                                <el-menu-item index="storemanager">员工管理</el-menu-item>-->
            <!--                                <el-menu-item index="storerole">角色管理</el-menu-item>-->
            <!--                            </el-menu-item-group>-->
            <!--                        </el-submenu>-->
          </el-menu>
        </el-aside>
        <el-container>
          <el-main>
            <div class="mar_b50">
              <router-view />
              <div>
                <audio ref="newsUrl" id="newsUrl" muted="muted" :src="newsUrl"></audio>
                <audio ref="urgeOrderUrl" id="urgeOrderUrl" muted="muted" :src="urgeOrderUrl"></audio>
                <audio ref="cancelOrderUrl" id="cancelOrderUrl" muted="muted" :src="cancelOrderUrl"></audio>
                <audio ref="retreatOrderUrl" id="retreatOrderUrl" muted="muted" :src="retreatOrderUrl"></audio>
                <audio ref="autoOrderUrl" id="autoOrderUrl" muted="muted" :src="autoOrderUrl"></audio>
              </div>
            </div>
            <!--                        <div class="ba_f mar_t20 pad_20 t_c">-->
            <!--                            <el-footer>底部版权</el-footer>-->
            <!--                        </div>-->
          </el-main>
        </el-container>
      </el-container>
    </el-container>
    <div style="height: 0; overflow: hidden">
      <ElementPrint :data="printData" ref="print" />
    </div>
  </div>
</template>
<script>
import { getStoreBasic } from '@/api/shop';
import { changeShopStatus } from '@/api/statistics';
import { storeIndex } from '@/api/storeshop';
import { orderContent } from "@/api/order";
import index from './api/index';
import { getConfig, checkAuth } from '@/api/setup';

import ElementPrint from "@/views/order/components/elementPrint";
import {mapActions, mapMutations, mapState} from 'vuex';
export default {
  name: 'shopMain',
  created() {
    this.init();
    this.getLogo();
    this.checkAuth();
  },
  destroyed(){
    console.log('页面销毁')
    //禁止重连
    this.lockReconnect = true
    this.ws.close()
  },
  components:{
    ElementPrint
  },
  computed: {
    ...mapState(['storeId', 'storeData'])
  },
  data() {
    return {
      printData: {},
      instore: '1',
      takeout: '1',
      orderName: '',
      yysj: false,
      isCollapse: false,
      levelList: [],
      data: '',
      headLogo: '',
      plateformName: '',
      authType: '',
      eleOpen: '',
      meituanOpen: '',
      newsUrl: require('@/assets/audio/newsUrl.mp3'),
      urgeOrderUrl: require('@/assets/audio/urgeOrderUrl.mp3'),
      cancelOrderUrl: require('@/assets/audio/cancelOrderUrl.mp3'),
      retreatOrderUrl: require('@/assets/audio/retreatOrderUrl.mp3'),
      autoOrderUrl: require('@/assets/audio/autoOrderUrl.mp3'),
    };
  },
  methods: {
    ...mapMutations(['storeDataMutations', 'storeMsg']),
    ...mapActions(['getStoreOrderList']),
    async init() {
      const { data } = await getStoreBasic({ id: this.storeId });
      this.storeDataMutations(data);
      this.storeMsg(data.id);
      // console.log(this.storeId,666)
      sessionStorage.setItem('storeId', data.id);
      // this.recordData();
    },
    async checkAuth() {
      const { authType } = await checkAuth();
      this.authType = authType;
    },
    // async recordData(){
    //     const {data} = await storeIndex({storeId:this.storeId});
    //     this.data=data;
    // },

    async getLogo() {
      const { data } = await getConfig({ ident: 'system' });
      this.headLogo = data.icon;
      this.plateformName = data.name;
      this.eleOpen = data.eleOpen;
      this.meituanOpen = data.meituanOpen;
      this.instore = data.instorePower ? data.instorePower : '1';
      this.takeout = data.takeoutPower ? data.takeoutPower : '1';
      this.upLoad2(this);
      // if(localStorage.getItem('llws收到消息啦plateformData')){
      //     this.headLogo=JSON.parse(localStorage.getItem('plateformData')).icon
      //     this.plateformName=JSON.parse(localStorage.getItem('plateformData')).name;
      // }
    },
    async changeSwitch(row, type) {
      const { msg } = await changeShopStatus({ storeOpen: row, type, storeId: this.storeId });
      this.$baseMessage(msg, 'success');
      this.yysj = false;
      this.init();
    },
    close() {
      this.yysj = false;
    },
    qxg() {
      this.yysj = false;
      this.$router.push({ path: 'storeoutset' });
    },
    mdxx() {
      this.$router.push({ path: 'storebaseset' });
    },
    outsystem() {
      let routeData = this.$router.resolve({ path: '/login', query: {} });
      window.open(routeData.href, '_blank');
    },
    returnsystem() {
      sessionStorage.setItem('storeId', '');
      this.storeMsg('');
      this.$router.push({ path: 'shoplist' });
    },
    linkHome() {
      this.$router.push({ path: 'storeindex' });
    },
    clickYycj() {
      if (this.yysj == false) {
        this.yysj = true;
      } else {
        this.yysj = false;
      }
    },
    getBreadcrumb() {
      // console.log(11, this.$route.matched)
      return;
      let matched = this.$route.matched.filter((item) => item.name);
      const first = matched[0];
      if (first && first.name.trim().toLocaleLowerCase() !== 'Dashboard'.toLocaleLowerCase()) {
        matched = [{ path: '/dashboard', meta: { title: 'dashboard' } }].concat(matched);
      }
      this.levelList = matched;
    },
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    shwoHidenClick() {
      if (this.isCollapse == false) {
        this.isCollapse = true;
      } else {
        this.isCollapse = false;
      }
    },
    upLoad2(_that) {
      _that.lockReconnect = false; //避免ws重复连接
      _that.ws = null; // 判断当前浏览器是否支持WebSocket
      const publishUrl = 'wss://' + 'bkycms.com' + ':9875';
      var wsUrl = index.isDev ? publishUrl : 'wss://' + window.location.host + ':9875';
      createWebSocket(wsUrl); //连接ws
      function createWebSocket(url) {
        try {
          if ('WebSocket' in window) {
            _that.ws = new WebSocket(url);
          }
          initEventHandle();
        } catch (e) {
          reconnect(url);
          // console.log(e);
        }
      }

      function initEventHandle() {
        _that.ws.onclose = function () {
          reconnect(wsUrl);
          // console.log("llws连接关闭!"+new Date().toLocaleString());
        };
        _that.ws.onerror = function () {
          reconnect(wsUrl);
          // console.log("llws连接错误!");
        };
        _that.ws.onopen = function () {
          heartCheck.reset().start(); //心跳检测重置
          // console.log("llws连接成功!"+new Date().toLocaleString());
        };
        _that.ws.onmessage = function (event) {
          //如果获取到消息，心跳检测重置
          heartCheck.reset().start(); //拿到任何消息都说明当前连接是正常的
          console.log('22llws收到消息啦:' + event.data);
          if (event.data) {
            //处理业务逻辑
            var hdData = JSON.parse(event.data);
            if (hdData.voiceName) {
              if(hdData.uniacid == _that.storeData.uniacid && hdData.storeId == _that.storeData.storeId){
                // let hdData = event.data
                console.log(22,event.data)
                if (hdData.num && hdData.voiceName) {
                  _that.Orderprocessing1(hdData.num,hdData.voiceName);
                  var params = {
                    page: '1',
                    state: '1',
                    storeId: _that.storeId
                  };
                  _that.getStoreOrderList(params);
                }
                if (hdData.orderId) {
                  console.log('orderId',hdData)
                  print(hdData.orderId);
                }
              }
            }
          }
        };
      }
      // 监听窗口关闭事件，当窗口关闭时，主动去关闭websocket连接，防止连接还没断开就关闭窗口，server端会抛异常。
      window.onbeforeunload = function () {
        _that.ws.close();
      };
      async function print(id) {
        const { data } = await orderContent({orderId:id});
        console.log(data)
        Object.keys(data).map(key=>{
          _that.printData = data[key];
          _that.$nextTick(() => {
            _that.$refs.print.printElement(key);
          });
        })
      }
      function reconnect(url) {
        if (_that.lockReconnect) return;
        _that.lockReconnect = true;
        setTimeout(function () {
          //没连接上会一直重连，设置延迟避免请求过多
          createWebSocket(url);
          _that.lockReconnect = false;
        }, 2000);
      }
      //心跳检测
      var heartCheck = {
        timeout: 3000, //1分钟发一次心跳
        timeoutObj: null,
        serverTimeoutObj: null,
        reset: function () {
          clearTimeout(this.timeoutObj);
          clearTimeout(this.serverTimeoutObj);
          return this;
        },
        start: function () {
          var self = this;
          this.timeoutObj = setTimeout(function () {
            //这里发送一个心跳，后端收到后，返回一个心跳消息，
            //onmessage拿到返回的心跳就说明连接正常
            _that.ws.send('ping');
            // console.log("ping!")
            self.serverTimeoutObj = setTimeout(function () {
              //如果超过一定时间还没重置，说明后端主动断开了
              _that.ws.close(); //如果onclose会执行reconnect，我们执行ws.close()就行了.如果直接执行reconnect 会触发onclose导致重连两次
            }, self.timeout);
          }, this.timeout);
        }
      };
    },
    Orderprocessing1(num,name) {
      var vid = ''
      switch (name) {
        case 'newOrder':
          vid = document.getElementById('newsUrl')
          break;
        case 'reminderOrder':
          vid = document.getElementById('urgeOrderUrl')
          break;
        case 'cancelOrder':
          vid = document.getElementById('cancelOrderUrl')
          break;
        case 'chargebackOrder':
          vid = document.getElementById('retreatOrderUrl')
          break;
        case 'receiving':
          vid = document.getElementById('autoOrderUrl')
          break;
      }
      var start = 0; //定义循环的变量
      var times = num; //定于循环的次数
      vid.addEventListener('ended', function () {
        vid.play(); //启动音频，也就是播放
        start++; //循环
        start == times && vid.pause(); //也就是当循环的变量等于次数的时候，就会终止循环并且关掉音频
      });
      vid.play(); //启动音频，用于第一次启动
    },
  }
};
</script>
<style lang="scss">
.line {
  width: 2px;
  height: 20px;
  background: #aab2bd;
}
.imgBox {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  img {
    width: 100%;
    height: 100%;
  }
}
#shopMain {
  height: 100%;

  .el-container {
    height: 100%;
  }

  .el-main {
    overflow: hidden;
    overflow-y: auto;
    flex-wrap: nowrap;
    text-align: left;
    background: #f6f7fa;
    margin-bottom: 50px;
    padding: 10px;
  }

  .el-header {
    padding: 0;
    background: #fff;
    height: 67px !important;
  }

  .header {
    height: 67px;
    border-bottom: 1px solid #e5e5e5;
    border-top: 7px solid #4165d7;
  }

  .el-aside {
    width: auto !important;
    padding-top: 20px;
  }

  .el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 200px;
    min-height: 400px;
  }

  .el-menu {
    border: none !important;
    /*background-color: #2f3447;*/
    transition: all 0s linear;
    height: 100%;
  }

  .el-menu--collapse {
    width: 63px;
  }

  .el-menu-item,
  .el-submenu {
    text-align: left;
    transition: all 0s linear;
  }

  .el-submenu__title,
  .el-menu-item {
    height: 50px;
    line-height: 50px;
    /*color: #fff;*/
    /*transition: all 0s linear;*/
  }
  .el-menu-item-group__title {
    display: none;
  }
  .el-menu-item-group .el-menu-item {
    padding-left: 0px !important;
  }

  .el-menu-item:focus,
  .el-menu-item:hover {
    outline: 0;
    /*background-color: #4165d7;*/
  }
  .el-submenu__title:hover {
    background-color: #fff;
  }
  .el-submenu__title:hover {
    /*background-color: #4165d7;*/
  }

  .el-menu-item i {
    /*color: #fff;*/
  }

  .el-submenu__title i {
    color: #5e6a73;
  }
  .el-menu-item i {
    color: #5e6a73;
  }
  .el-menu-item.is-active i {
    color: #4165d7;
  }
  .el-menu-item:focus,
  .el-menu-item:hover {
    outline: 0;
    background-color: #fff;
  }
  .el-menu-item-group ul {
    margin-top: 10px;
    border-left: 1px solid #e4e7ed;
    margin-left: 30px;
  }
  .el-menu-item-group .el-menu-item {
    padding-left: 15px !important;
  }
  .el-submenu .el-menu-item {
    padding: 0;
    min-width: 0;
    height: 15px;
    line-height: 15px;
    margin-bottom: 20px;
    margin-left: -2px;
    border-left: 3px solid transparent;
  }
  .el-menu-item.is-active {
    color: #4165d7;
  }
  .el-submenu .is-active {
    color: #4165d7;
    border-left: 3px solid #4165d7;
  }

  .yb_logo2 {
    width: 28px;
    height: 28px;
  }
  .storeicon {
    width: 35px;
    height: 35px;
    border: 1px solid #e5e4ea;
    border-radius: 4px;
  }
  .right_model {
    padding-right: 10px;
  }
  .shopname {
    color: #5f6265;
  }
  .shopline {
    width: 1px;
    height: 13px;
    margin: 0 20px;
    background: #d8dce6;
  }
  .shoptxt {
    color: #55ae36;
    font-weight: 500;
  }
  .ssdd .el-input__inner {
    height: 32px;
    padding: 8px 32px;
    padding-left: 38px;
    border-radius: 16px;
    border: 1px solid #d8dce6;
    outline: none;
    color: #5a5e66;
    line-height: 1;
    font-size: 14px;
  }
  .ssdd .el-input__icon {
    line-height: 32px;
  }
  .storeyyzt {
    border: 1px solid #dfe4ed;
    width: 300px;
    box-sizing: border-box;
    padding: 15px 15px 20px 15px;
    max-height: 400px;
    top: 51px;
    right: 50px;
    background: #fff;
    color: #5a5e66;
    z-index: 999;
    /*overflow-y: scroll;*/
  }
  .zcyy {
    font-size: 12px;
    color: #2d2f33;
  }
  .oper {
    padding: 12px 18px;
    background-color: #f5f7fa;
    font-size: 14px;
    border-radius: 4px;
    color: #878d99;
    line-height: 1;
    cursor: pointer;
  }
  .oper:hover {
    background: #e6ebf5;
  }
  .hhyy {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #2d2f33;
  }
  .binding {
    font-size: 14px;
    color: #878d99;
    line-height: 1;
    cursor: pointer;
  }
  .ztColor {
    color: rgb(103, 194, 58);
  }
}
</style>
